<el-header class="theme-background-color1" style="color: #fff; line-height: 60px; font-size: 12px; text-align: right;">
    ${userName!}&nbsp;&nbsp;
    <el-button @click="window.location.href = '/yq/admin/auth/logout'" size="mini">登出</el-button>
</el-header>
<script type="text/javascript">
function onClickBack() {
    MtaH5.clickStat("click_back")
    window.history.back()
}

function onChangePwd() {
    MtaH5.clickStat("change_pwd")
    var pPattern = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$/;
    var key = "4ep18o2t5kkopx2r";
    var self = this
    vue.$prompt('请填写密码,6到16位（字母，数字)', '修改密码', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        inputPattern: pPattern,
        inputErrorMessage: '密码格式不正确'
    }).then(({ value }) => {
        console.log(value)


        var param = {
            password: aes(key, value),
        }
        console.log(param)
        var url = '/jh/admin/auth/changePassword';
        var success = function(data) {
            console.log(data)
        }

        var fail = function() {
            alert('修改失败')

        }

        var complete = function() {}
        // axiosRequestPro()
        axiosRequestPro(param, url, success, fail, complete)
    });
}
</script>